<FORM method="post" action="{$fvConfig->get('dir_web_root')}managerparams/save/">
<div class="form" style="width: 50%">
    <H1>Параметры менеджеров</H1>
    <div class="operation"><a href="{$fvConfig->get('dir_web_root')}managerparams/" onclick="go('{$fvConfig->get('dir_web_root')}managerparams/'); return false;" class="left">вернутся к списку</a><div style="clear: both;"></div></div>

    <label for="param_name">Названиe</label> <input type="text" id="param_name" name="mp[param_name]" value="{$ManagerParam->param_name}" /><br />
    <label for="param_type">Тип параметра</label>
    {html_options name=mp[param_type] id=param_type options=$ParamTypes selected=$ManagerParam->param_type}<br />

    <label for="param_descr">Описание</label> <input type="text" id="param_descr" name="mp[param_descr]" value="{$ManagerParam->param_descr}" /><br />
    <label for="param_value">Значение по умолчанию</label> <input type="text" id="param_value" name="mp[param_value]" value="{$ManagerParam->param_value}" /><br />
        
    <div class="buttonpanel">
        <input type="submit" name="save" value="Сохранить" class="button"  onclick="$('redirect').value = '';">
        <input type="submit" name="save_and_return" value="Сохранить и выйти" class="button" onclick="$('redirect').value = '1';">
    </div>
    <input type="hidden" name="id" id="id" value="{$ManagerParam->getPk()}" />
    <input type="hidden" id="redirect" name="redirect" value="" /> 
</div>
</FORM>